package com.smart_campus.activiti.service;

import com.smart_campus.activiti.domain.Askforleave;
import com.smart_campus.activiti.vo.AskforleaveVo;
import com.smart_campus.sys.common.DataGridView;
import com.smart_campus.sys.domain.User;
import org.activiti.engine.task.Task;

import java.util.List;

/**
*   @aytgor 陈鹏
*   @date 2020/6/28 15:14
*
*/
public interface AskforleaveService{


    int deleteByPrimaryKey(Integer activitiId);

    Askforleave insert(Askforleave record);

    Askforleave insertSelective(Askforleave record);

    Askforleave selectByPrimaryKey(Integer activitiId);

    int updateByPrimaryKeySelective(Askforleave record);

    int updateByPrimaryKey(Askforleave record);

    /**
     * 获取教务主任id
     * @return
     */
    String getDeanOfStudies();

    /**
     * 获取校长id
     * @return
     */
    String getPresident();


    /**
     * 通过用户获取权限id
     * @return
     */
    List<Integer> getUserRole(User user);

    /**
     * 通过id获取请假信息
     * @param id
     * @return
     */
    AskforleaveVo getAskforleave(Integer id);

    DataGridView LookMylEAVE(AskforleaveVo askforleaveVo);

}
